<template>
    <div>
    {{this.uid}}
        <p>邮箱:<input type="text" v-model="username"></p >
        <p>密码:<input type="text" v-model="password"></p >
        <p><input type="button" value="绑定" @click="uid_bind"></p >

    </div>
</template>
<script>
export default {
    data(){
        return{
            uid : this.$route.query.uid,
            username:'2029862812@qq.com',
            password:'123'
        }

    },
    methods:{
        uid_bind(){
            var data={
                'username' : this.username,
                'password' : this.password,
                'uid' : this.uid
            }
            this.axios.post('lou/bind',data).then(res=>{
                console.log(res.data.msg)
                alert('绑定成功')
                this.$router.push('index')
            }).catch(res=>{
                console.log(res.response.data)
            })
            
        }
    },

}
</script>